/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Revision : 1.0                                       	**
**                                                             	**
*****************************************************************/
#ifndef __AW_TXT_APP_H_
#define __AW_TXT_APP_H_

#include "includes.h"
#include "aw_windows.h"

#define TXT_PLAY_TXT 0
#define TXT_PLAY_IMG 1

#define UPGRADE_OPEN_INTERRUPT  0
#define UPGRADE_CLOSE_INTERRUPT 1

// flag 0 or 1 ,0: play txt file  1:image upgrade
// line the txt show line number (if image upgrade mode,1 close interrupt  0 don't close interrupt)
// wide the txt show char numbers of one line 
int PlayTxtFile(char *file_name, INT8U flag, INT16U line_interrupt, INT16U wide) ;
#ifdef ENABLE_NANDDRV
int PlayTxtFile_nand(char *file_name, INT8U flag, INT16U line_interrupt, INT16U wide) ;
#endif
void AWTXTKeyDo(INT32S key, INT32S Param) ;

void AWTXTKeyProcess(AWMSG *pMsg) ;

void AWTXTNotificationProcess(AWMSG *pMsg) ;

void AWTXTMsgProcess(AWMSG *pMsg) ;



#endif //__AW_TXT_APP_H_
